package com.itany.corejava.code07_面向对象.封装;

/**
 * @author 石小俊
 * 2024年07月15日 14:15
 */
public class Test02 {

    public static void main(String[] args) {
        Emp emp = new Emp();
        emp.setName("admin");
        emp.setSalary(5000);
        emp.setAge(16);
        emp.show();
        System.out.println("name:"+emp.getName()+",salary:"+emp.getSalary()+",gender:"+emp.getGender()+",age:"+emp.getAge());

        Emp emp2 = new Emp("alice",8000,"女",15);
        emp2.show();
    }

}
